#ifndef __DemoString_H__

#define __DemoString_H__

// 从末尾向开头 查找ostr 第一处匹配 fstr 的
char* findSubStrBackward(char* ostr, char*fstr);

char* replaceSubStr(char* ostr, char* fstr, char* replaceStr);

// malloc 申请足够空间，拷贝srcStr后返回
char* malloc2Strcpy(char* srcStr);

char* stringWhiteSpaceLeftTrimed(char *str4Trim, char *whiteSpaces);
char* stringWhiteSpaceRightTrimed(char *str4Trim, char *whiteSpaces);
char* stringWhiteSpaceTrimed(char *str4Trim, char *whiteSpaces);
char* stringLeftTrimed(char *str4Trim);
char* stringRightTrimed(char *str4Trim);
char* stringTrimed(char *str4Trim);


void demoStringLogic(void);

#endif
